home *** CD-ROM | disk | FTP | other *** search
/ Champak 61 / Volume 61 - JOGO DISK .iso / Games / lamb-chop-drop.swf / scripts / frame_2 / DoAction.as
Text File  |  2008-03-17  |  1KB  |  43 lines

  1. function formatAsPounds(amount)
  2. {
  3.    if(isNaN(amount))
  4.    {
  5.       return "┬ú0.00";
  6.    }
  7.    amount = Math.round(amount * 100) / 100;
  8.    var _loc6_ = String(amount);
  9.    var _loc3_ = _loc6_.split(".");
  10.    if(_loc3_[1] == undefined)
  11.    {
  12.       _loc3_[1] = "00";
  13.    }
  14.    if(_loc3_[1].length == 1)
  15.    {
  16.       _loc3_[1] += "0";
  17.    }
  18.    var _loc4_ = new Array();
  19.    var _loc2_ = undefined;
  20.    var _loc1_ = _loc3_[0].length;
  21.    while(_loc1_ > 0)
  22.    {
  23.       _loc2_ = Math.max(_loc1_ - 3,0);
  24.       _loc4_.unshift(_loc3_[0].slice(_loc2_,_loc1_));
  25.       _loc1_ = _loc2_;
  26.    }
  27.    _loc3_[0] = _loc4_.join(",");
  28.    return "┬ú" + _loc3_.join(".");
  29. }
  30. _global.musicStart_snd = new Sound();
  31. musicStart_snd.attachSound("musicstart1.wav");
  32. _global.music_snd = new Sound();
  33. music_snd.attachSound("music.wav");
  34. _global.endMusic_snd = new Sound();
  35. endMusic_snd.attachSound("endMusic.wav");
  36. _global.collect_snd = new Sound();
  37. collect_snd.attachSound("collectSound1.mp3");
  38. _global.bonus_snd = new Sound();
  39. bonus_snd.attachSound("bonusSound.wav");
  40. _global.ring_snd = new Sound();
  41. ring_snd.attachSound("collectRing.wav");
  42. stop();
  43.